package com.zhouidea.www.control.Circulation.For.Pro;

public class ForProDemo1 {
    public static void main(String[] args) {
        int[] numbers = {10,20,30,40,50}; //定义了一个数组

        for (int i = 0; i < 5; i++) {
            System.out.println(numbers[i]);//取第i个数
        }
        System.out.println("=======================");
        //遍历数组的元素
        for (int x:numbers){
            System.out.println(x);
        }
    }
}
